//
//  YCPanGestureRecognizer.swift
//  SwiftLtools
//
//  Created by YC on 2017/4/11.
//  Copyright © 2017年 YC. All rights reserved.
//

import UIKit

class YCPanGestureRecognizer: UIPanGestureRecognizer, UIGestureRecognizerDelegate {
    override init(target: Any?, action: Selector?) {
        super.init(target: target, action: action)
        
        self.delegate = self
    }
    
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
        
//        if otherGestureRecognizer.view is UIScrollView {
//            LogRed("false")
//            return false
//        }
        
        return true
    }
}
